﻿using System;
using System.Text.RegularExpressions;

class Program
{
    static void Main()
    {
        string splitPattern = @"\D+";
        string text = "dfgfg 32 sdfdsfd1234 dsfdfg323 gfddf1231sdfsad 22 -1245 2.455";
        string[] numbers = Regex.Split(text, splitPattern);
        foreach (string number in numbers)
        {
            Console.WriteLine(number);
        }
    }
}
